package com.foreknow.demo5Exercise2;

import java.util.Scanner;

public class Person {

    private String name;
    private int score;

    public String getName() {
        return name;
    }

    public String setName(String name) {
        this.name = name;
        return name;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Person() {

    }



    public int person() {
        Scanner input = new Scanner(System.in);
        System.out.println("请出拳：1.剪刀  2.石头 3.布(请输入相对应的数字)：");
        int chuquan = input.nextInt();
        switch(chuquan) {
            case 1:
                System.out.println("你出拳：剪刀");
                break;
            case 2:
                System.out.println("你出拳：石头");
                break;
            case 3:
                System.out.println("你出拳：布");
                break;
        }
        return chuquan;
    }

}
